<?php
  $cakeDescription = 'Dashboard I Admin Panel';
  ?>
<!doctype html>
<html lang="en">
  <head>
    <?php echo $this->Html->charset(); ?>
    <title>
      <?php echo $cakeDescription ?>:
      <?php echo $title_for_layout; ?>
    </title>
    <?php
      echo $this->Html->meta('icon');
      echo $this->Combiner->css('admin_layout'/*,'bootstrap.min'*/);
      echo $this->Combiner->js('jquery-1.8.0.min','hideshow','jquery.tablesorter.min','jquery.equalHeight'/*,'bootstrap.min'*/);
      echo $this->fetch('meta');
      echo $this->fetch('css');
      echo $this->fetch('script');
      ?>
    <!--[if lt IE 9]>
    <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" />
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script type="text/javascript">	
		$(document).ready(function(){ 
			$(".tablesorter").tablesorter(); 
		});
		$(document).ready(function() {

			//When page loads...
			$(".tab_content").hide(); //Hide all content
			$("ul.tabs li:first").addClass("active").show(); //Activate first tab
			$(".tab_content:first").show(); //Show first tab content

			//On Click Event
			$("ul.tabs li").click(function() {

				$("ul.tabs li").removeClass("active"); //Remove any "active" class
				$(this).addClass("active"); //Add "active" class to selected tab
				$(".tab_content").hide(); //Hide all tab content

				var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
				$(activeTab).fadeIn(); //Fade in the active ID content
				return false;
			});

		});
         
    </script>
    <script type="text/javascript">
      $(function(){
         $('.column').equalHeight();
		 if($('.column').height() < window.innerHeight){
			 $('.column').height(window.innerHeight - 91);
		 }
      });
    </script>
  </head>
  <body>
    <header id="header">
      <hgroup>
        <h1 class="site_title"><a href="<?php echo $this->Html->url(array('controller' => 'homes', 'action' => 'dashboard', 'admin'=>true)); ?>">Website Admin</a></h1>
        <h2 class="section_title"><strong>Dashboard</strong></h2>
        <div class="btn_view_site"><a href="<?php echo $this->Html->url(array('controller' => 'homes','action' => 'home', 'admin'=>false)); ?>" target="_blank">View Site</a></div>
      </hgroup>
    </header>
    <!-- end of header bar -->
    <section id="secondary_bar">
      <div class="user">
        <p>John Doe (<a href="#">3 Messages</a>)</p>
      </div>
      <div class="breadcrumbs_container">
        <article class="breadcrumbs">
          <!--<a href="#">Website</a> 
          <div class="breadcrumb_divider"></div>
		  <a href="#">Admin</a> 
          <div class="breadcrumb_divider"></div>
          <a class="current">Dashboard</a>-->
           <?php
			  echo $this->Html->getCrumbs($this->Html->div('breadcrumb_divider',''),
				array(
					'text' => 'EJVietNam',
					'url' => array('controller' => 'homes','action' => 'dashboard' ,'admin'=>true),
					'escape' => false
					));
			?>
        </article>
      </div>
    </section>
    <!-- end of secondary bar -->
    <?php include 'admin_modules/left_sidebar.ctp'; ?>
    <!-- end of sidebar -->
    <section id="main" class="column">
	  <?php echo $this->Session->flash();?>
	  <?php echo $this->fetch('content');?>
	  <div class="spacer"></div>
	</section>
  </body>
</html>